<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>模板字面量-多行字符串</title>
    </head>
    <body>
        <h1>模板字符串</h1>
        <p>来源:<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/template_strings">https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/template_strings</a></p>
        <h3>多行字符串</h3>
        <script>
            console.log('string text line 1\n' +
            'string text line 2');
            console.log(`string text line 1
            string text line 2`);
            console.log(`时间是固定的！
                你用来做这个，你就无法用来做那个`);
        </script>
    </body>
</html>